package com.jdym.back.mapper;

import com.jdym.back.entity.Loan;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jdym.back.entity.vo.LoanInfo;

import java.util.List;

/**
 * <p>
 * 贷款表 Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2021-09-20
 */
public interface LoanMapper extends BaseMapper<Loan> {

    public List<LoanInfo> getAllLoanApply();

    LoanInfo getAllLoanFileById(int id);

    List<LoanInfo> getAllLoanByKeyWord(String keyWord);

    List<LoanInfo> getAllapprovedSuc();

    int applyLoan(Loan loan);


    List<LoanInfo> historyLoan(int firmId);

    List<LoanInfo> getAllLoanWithMsg();


    List<Loan> selectStatisics(String start, String end);


    void updateLoanPutId(Loan loan);


    Loan getLoanCobankFirm(int id);
}
